package com.cjr.ddp.service.impl;

import com.cjr.ddp.dao.PageDao;
import com.cjr.ddp.dao.TarDao;
import com.cjr.ddp.entity.DictTarget;
import com.cjr.ddp.service.PageService;
import com.cjr.ddp.service.TarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author cjr
 * @date Created in 2020-03-05 20:54
 * @description
 * @modified By
 */
@Service
public class PageServiceImpl implements PageService {


    @Autowired
    PageDao pageDao;

    @Override
    public List<DictTarget> getPageTar(String year, String pageid) {
        return pageDao.getPageTar(year,pageid);
    }

    @Override
    public List<Map<Object, Object>> getTrend(String start, String end, String tarid) {
        return pageDao.getTrend(start,end,tarid);
    }
}
